| Fully Qualified Name: | Laminas\Permissions\Rbac\Role |
| Implements: | RoleInterface |
| Name | Description | Defined By |
|---|---|---|
| __construct() | Role | |
| addChild() | Add a child role. | Role |
| addParent() | Add a parent role. | Role |
| addPermission() | Add a permission to the role. | Role |
| getChildren() | Get all child roles | Role |
| getName() | Get the name of the role. | Role |
| getParents() | Get the parent roles. | Role |
| getPermissions() | Get the permissions of the role, included all the permissions of the children if $children == true | Role |
| hasPermission() | Checks if a permission exists for this role or any child roles. | Role |
| Parameter Name | Type | Description |
|---|---|---|
| $name |
Returns: void
Add a child role.
| Parameter Name | Type | Description |
|---|---|---|
| $child |
Returns:
Add a parent role.
| Parameter Name | Type | Description |
|---|---|---|
| $parent |
Returns:
Add a permission to the role.
| Parameter Name | Type | Description |
|---|---|---|
| $name |
Returns:
Get all child roles
Returns: \RoleInterface[]
Get the name of the role.
Returns:
Get the parent roles.
Returns: \RoleInterface[]
Get the permissions of the role, included all the permissions of the children if $children == true
| Parameter Name | Type | Description |
|---|---|---|
| $children |
Returns:
Checks if a permission exists for this role or any child roles.
| Parameter Name | Type | Description |
|---|---|---|
| $name |
Returns: